package com.jsgt.greekfire.ui.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jsgt.greekfire.R
import com.jsgt.greekfire.ui.main.adapter.model.DrawerMenu

class DrawerMenuAdapter(layoutResId: Int) :
    BaseQuickAdapter<DrawerMenu, BaseViewHolder>(
        layoutResId
    ) {
    override fun convert(
        helper: BaseViewHolder,
        drawerMenu: DrawerMenu
    ) {
        helper.setText(R.id.txv, drawerMenu.name)
        helper.setImageResource(R.id.imv, drawerMenu.imageRes)
    }
}